var tm = require("./tm1.js");
import {} from '../base/observer.js';

var baiPoint = require("../components/baidumapGetPosition.js");

console.log("test.t1**********");

tm.test1();
var point;
setTimeout(function() {
    point = baiPoint.getPoint();
    console.dir(point);
    var latitude = point.lat;
    var longitude = point.lng;
    newMap();
}, 3000);

// 创建地图
function newMap() {
    var map = new BMap.Map("allmap");
    var mapPoint = new BMap.Point(point.lng, point.lat);
    map.centerAndZoom(mapPoint, 12);
    var mk = new BMap.Marker(point);
    map.addOverlay(mk);

}